package com.wufeng.model.SpringBootModel.other;

public class SelfInterruption {
    public static void main(String[] args) {
        Thread.currentThread().interrupt();
        System.out.println("1:" + Thread.interrupted());
        System.out.println("2:" + Thread.interrupted());
        if (Thread.interrupted()) {
            System.out.println("interruped:" + Thread.interrupted());
        } else {
            System.out.println("Not interruped:" + Thread.interrupted());
        }
    }
}
